Benjamin Otte [Sat, 29 Oct 2016 02:37:20 +0000 (04:37 +0200)]
API: screen: Remove gdk_screen_is_composited()
Switch code to use gdk_display_is_composited() instead.
The new code also doesn't use a vfunc to query the property but rather
requires the backend to call set_composited()/set_rgba() to change the
value.
Benjamin Otte [Sat, 29 Oct 2016 01:25:06 +0000 (03:25 +0200)]
API: widget: Remove GtkWidget::composited-changed signal
Nobody uses it.
If you need the functionality, listen to display changes on
your widget and then connect to the display's notify::composited.
Benjamin Otte [Fri, 28 Oct 2016 23:06:05 +0000 (01:06 +0200)]
inspector: Use the new APIs when displaying information
Benjamin Otte [Fri, 28 Oct 2016 21:38:16 +0000 (23:38 +0200)]
API: gdk: Add gdk_display_is_rgba() and gdk_display_is_composited()
Also add properties for those two properties.
The first property is equivalent to checking if an RGBA visual exists,
the 2nd is equivalent to gdk_screen_is_composited().
Timm Bäder [Fri, 28 Oct 2016 17:32:50 +0000 (19:32 +0200)]
frame: Get the render node from the gadget
So we get a proper css background etc. applied.
Timm Bäder [Fri, 28 Oct 2016 16:10:22 +0000 (18:10 +0200)]
Fix clip of more windowed widgets
Timm Bäder [Fri, 28 Oct 2016 15:55:13 +0000 (17:55 +0200)]
Fix clip position of windowed widgets
Marek Černocký [Fri, 28 Oct 2016 15:07:54 +0000 (17:07 +0200)]
Updated Czech translation
Timm Bäder [Fri, 28 Oct 2016 14:29:51 +0000 (16:29 +0200)]
modelbutton: Convert to indirect rendering
Timm Bäder [Fri, 28 Oct 2016 12:31:43 +0000 (14:31 +0200)]
cssgadget: Move gadgets to their allocated position
Timm Bäder [Fri, 28 Oct 2016 11:42:11 +0000 (13:42 +0200)]
switch: Port to indirect rendering
Timm Bäder [Thu, 27 Oct 2016 12:04:44 +0000 (14:04 +0200)]
testframe: Fix css element name
Timm Bäder [Thu, 27 Oct 2016 07:54:42 +0000 (09:54 +0200)]
frame: Use measure() to measure label size
Timm Bäder [Thu, 27 Oct 2016 07:38:45 +0000 (09:38 +0200)]
stack: Use measure() to measure child widget
Simpler code this way \o/
Timm Bäder [Tue, 25 Oct 2016 14:52:27 +0000 (16:52 +0200)]
csswidgetnode: Fix container condition for GtkInvisible
... which is a toplevel, but not a container.
Timm Bäder [Mon, 24 Oct 2016 18:08:58 +0000 (20:08 +0200)]
menusectionbox: Remove margins
So the theme can add the spacing on its own.
Timm Bäder [Mon, 24 Oct 2016 18:03:27 +0000 (20:03 +0200)]
inspector: make use of GtkButton's icon-name property
Timm Bäder [Mon, 24 Oct 2016 09:45:21 +0000 (11:45 +0200)]
toggletoolbutton: Remove unneeded deprecation markers
Matthias Clasen [Fri, 28 Oct 2016 10:47:26 +0000 (06:47 -0400)]
Revert "Convert GtkEntry to indirect rendering"
This reverts commit
8e29222d95449278d66f3e067d7dc1dcb7f6dcae.
This needs more work - spin buttons need to be converted at
the same time, and we should make sure that text still appears.
Chun-wei Fan [Fri, 14 Oct 2016 11:04:49 +0000 (19:04 +0800)]
GDK-Win32/4.0: Improve GL on Windows
Update the GDKGL implementation:
-Allow legacy contexts to be created.
-Use finer-grained attributes to ask for a pixel format when possible,
which also adds support for anti-aliasing
In fact the changes here are required for GTKGL to work properly on
Windows for 4.x.
Note that creation of gles contexts is not done here, as the system does
not support such contexts directly on Windows, but only through means such
as ANGLE, which is a totally different issue here.
https://bugzilla.gnome.org/show_bug.cgi?id=773528
Chun-wei Fan [Fri, 28 Oct 2016 05:42:55 +0000 (13:42 +0800)]
GDK/Win32: Deal with leftovers from removal of GdkWindow items
We need to further remove items for the removal of:
-GdkWindow->depth (commit
6cc94ff)
-gdk_window_get_visual()/GdkWindow->visual (commit
f420dc7)
-GDK visual query APIs (commit
45c0379)
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Benjamin Otte [Fri, 28 Oct 2016 02:42:24 +0000 (04:42 +0200)]
API: gdk: Remove visual querying APIs
They are unused, only work on the default display anyway and visuals are
on their way out.
Benjamin Otte [Thu, 27 Oct 2016 21:27:49 +0000 (23:27 +0200)]
API: gdk: Remove gdk_window_get_visual()
With it, remove window->visual.
Benjamin Otte [Thu, 27 Oct 2016 14:24:42 +0000 (16:24 +0200)]
gdk: Remove GdkWindow.depth member variable
It's unused.
Benjamin Otte [Thu, 27 Oct 2016 13:38:41 +0000 (15:38 +0200)]
window: Add a GdkWindow:display property
... and make it an explicit property of the window struct instead of
looking it up in the visual.
Matthias Clasen [Fri, 28 Oct 2016 00:46:08 +0000 (20:46 -0400)]
Convert GtkEntry to indirect rendering
Warning! This unveils some positioning issue with the secondary icon.
Matthias Clasen [Fri, 28 Oct 2016 00:27:34 +0000 (20:27 -0400)]
Convert GtkIcon to indirect rendering
Sébastien Wilmet [Thu, 27 Oct 2016 10:20:46 +0000 (12:20 +0200)]
docs: more logical GtkEntry function order in the section file
Trivial commit.
Group related functions together. Most of the functions had already the
set -> get order, so keep that order.
Sébastien Wilmet [Thu, 27 Oct 2016 10:05:37 +0000 (12:05 +0200)]
docs: consistent get/set function order for GtkScrolledWindow
Trivial commit.
For all the other GtkScrolledWindow functions, the order was get -> set.
Except for 3 functions, so fix that.
Chun-wei Fan [Thu, 27 Oct 2016 06:27:21 +0000 (14:27 +0800)]
MSVC builds: Simplify "install" property sheet
Use a for loop to loop through the icon sizes to copy them.
Rico Tzschichholz [Thu, 27 Oct 2016 06:16:57 +0000 (08:16 +0200)]
gtk+-4.0.pc: Make sure to add requirements for Gsk (e.g. graphene-1.0)
Chun-wei Fan [Thu, 27 Oct 2016 06:13:42 +0000 (14:13 +0800)]
MSVC builds: Make the GSK project functional
Add the needed custom build steps to generate the GResource and
enumeration sources that is needed for the build, and make sure that the
build is able to find the Graphene headers and lib.
Also add the necessary CFLAGS needed for building GSK.
Chun-wei Fan [Thu, 27 Oct 2016 06:11:14 +0000 (14:11 +0800)]
MSVC builds: Fix previous patch on .sln file
We need to change the filenames of the .vcxproj project files as well,
oops.
Rico Tzschichholz [Thu, 27 Oct 2016 06:12:20 +0000 (08:12 +0200)]
gtk+-4.0.pc: Drop rogue refererene to non-existing gdk-4.0.pc
Chun-wei Fan [Thu, 27 Oct 2016 04:27:04 +0000 (12:27 +0800)]
build/win32/vs12/gtk4-gen-srcs.props: Fix XML reference URL
Visual Studio can be picky about this, causing projects not to load.
Chun-wei Fan [Thu, 27 Oct 2016 04:22:53 +0000 (12:22 +0800)]
Visual Studio projects: Rename tools to become gtk4-*
This follows what happens in the autotools builds.
Also fix some project namespaces and the install project where there is a typo
in a project dep, which may cause a problem during the build.
Benjamin Otte [Thu, 27 Oct 2016 04:37:02 +0000 (06:37 +0200)]
x11: Remove code that temporarily unsets the background
We don't set a background anymore, so we don't need to temporarily unset
it.
Benjamin Otte [Thu, 27 Oct 2016 04:14:01 +0000 (06:14 +0200)]
inspector: Don't connect to nonexisting signal
The GdkScreen::size-changed signal was removed a while ago.
And because signal changes don't trip the compiler, there are always
leftovers...
Benjamin Otte [Wed, 26 Oct 2016 03:29:07 +0000 (05:29 +0200)]
gtk: Add back infrastructure for GTK_DEBUG=updates
Includes the ability to turn on updates in the inspector. Animations are
now run via a tick function which allows us to neatly overlay a
semi-transparent red rectangle and fade it out over time.
It also probably enables way more, but somebody with more UI neatness
than me needs to figure out what it eanbles first...
Benjamin Otte [Tue, 25 Oct 2016 05:25:59 +0000 (07:25 +0200)]
treeview: Use gtk_widget_queue_draw()
Benjamin Otte [Sat, 22 Oct 2016 02:59:15 +0000 (04:59 +0200)]
textview: Use gtk_widget_draw()
Benjamin Otte [Fri, 21 Oct 2016 03:00:58 +0000 (05:00 +0200)]
widget: Use gtk_widget_queue_draw()
Benjamin Otte [Thu, 20 Oct 2016 16:46:27 +0000 (18:46 +0200)]
scrolledwindow: Use gtk_widget_queue_draw()
Benjamin Otte [Thu, 20 Oct 2016 15:33:33 +0000 (17:33 +0200)]
paned: Use gtk_widget_queue_draw()
Benjamin Otte [Wed, 19 Oct 2016 20:46:57 +0000 (22:46 +0200)]
menu: Remove unneeded invalidations
The gadgets should take care of those themselves
Benjamin Otte [Wed, 19 Oct 2016 20:46:47 +0000 (22:46 +0200)]
notebook: Use gtk_widget_queue_draw()
Benjamin Otte [Wed, 19 Oct 2016 20:33:26 +0000 (22:33 +0200)]
gtk: Remove gdk_window_invalidate() from docs
And replace its mentions with gtk_widget_queue_draw().
Benjamin Otte [Wed, 19 Oct 2016 20:27:43 +0000 (22:27 +0200)]
toolitemgroup: Use gtk_widget_queue_draw()
Benjamin Otte [Wed, 19 Oct 2016 20:17:50 +0000 (22:17 +0200)]
iconview: Use gtk_widget_queue_draw()
Benjamin Otte [Wed, 19 Oct 2016 20:05:20 +0000 (22:05 +0200)]
expander: Remove unnecessary redraws
Benjamin Otte [Wed, 19 Oct 2016 16:18:31 +0000 (18:18 +0200)]
drawingarea: Clarify docs
Don't use gdk_window_invalidate(), use gtk_widget_queue_draw().
Benjamin Otte [Tue, 18 Oct 2016 17:43:32 +0000 (19:43 +0200)]
widget: Redo how gtk_widget_queue_draw() works
Before, we would immediately invalidate the GdkWindow of the widget, now
we call the parent's GtkWidgetClass.queue_draw_child() function.
This allows the parent to track redraw queueing of children.
By default GtkWidgetClass.queue_draw_child() will again chain up to its
parent while respecting the GdkWindow hierarchy for clipping.
GtkWindow is then the only widget actually invalidating the GdkWindow.
This essentially moves redraw queueing from GDK to GTK.
Benjamin Otte [Tue, 18 Oct 2016 17:42:19 +0000 (19:42 +0200)]
widget: Inline function into only caller
... and remove all the checks that are not needed in this case.
Benjamin Otte [Wed, 26 Oct 2016 22:07:01 +0000 (00:07 +0200)]
gdk: Remove gdk_window_set_invalidate_handler()
It's not used anymore.
Benjamin Otte [Wed, 26 Oct 2016 22:06:36 +0000 (00:06 +0200)]
gdk: Add deprecation guards around deprecated function
Benjamin Otte [Wed, 26 Oct 2016 21:46:51 +0000 (23:46 +0200)]
pixelcache: Remove
It's now unused.
Benjamin Otte [Wed, 26 Oct 2016 21:45:57 +0000 (23:45 +0200)]
textview: Get rid of the pixel cache
Benjamin Otte [Wed, 26 Oct 2016 18:51:25 +0000 (20:51 +0200)]
treeview: Remove the pixel cache usage
Matthias Clasen [Thu, 27 Oct 2016 00:58:07 +0000 (20:58 -0400)]
Spacing fixes for builtin dialogs
Replace border-width and padding by margins, in most places.
Matthias Clasen [Wed, 26 Oct 2016 19:11:18 +0000 (15:11 -0400)]
More gtk-demo spacing fixes
Matthias Clasen [Wed, 26 Oct 2016 19:03:04 +0000 (15:03 -0400)]
gtk-demo: Start to fix up the spacing
Replace some cases of lost border-width with margins.
Matthias Clasen [Wed, 26 Oct 2016 18:42:11 +0000 (14:42 -0400)]
Fix widget-factory appearance, a bit
Use margins instead of border-width, for now.
Matthias Clasen [Wed, 26 Oct 2016 18:28:17 +0000 (14:28 -0400)]
color chooser: Fix a problem with show-editor=TRUE
For some reason we end up allocating the colorplane widget
before it is realized, and then never initialize the surface.
Fix this by explicitly doing it on realize.
https://bugzilla.gnome.org/show_bug.cgi?id=773474
Benjamin Otte [Wed, 26 Oct 2016 15:59:33 +0000 (17:59 +0200)]
applicationwindow: Fix issues with measure vfunc transition
Benjamin Otte [Wed, 26 Oct 2016 15:25:30 +0000 (17:25 +0200)]
viewport: Remove pixelcache
With the rework for GSK and queueing of redraws pending, the pixel cache
just gets in the way. So we remove it everywhere.
Emmanuele Bassi [Wed, 26 Oct 2016 15:10:35 +0000 (16:10 +0100)]
build: Update CLEANFILES
We use nodist for gir and typelib files, because we expect them to be
rebuilt.
Emmanuele Bassi [Wed, 26 Oct 2016 14:58:23 +0000 (15:58 +0100)]
build: Beautify the GIR post-processing
Use AM_V_GEN to silence the command line output.
Emmanuele Bassi [Wed, 26 Oct 2016 14:47:29 +0000 (15:47 +0100)]
gsk: Add check on GL_MAX_TEXTURE_SIZE
We should check (once) what's the maximum GL texture size and then use
that size to check when we create any GL texture, to avoid errors.
Matthias Clasen [Wed, 26 Oct 2016 14:45:04 +0000 (10:45 -0400)]
Fix the build
Copy-paste error.
Matthias Clasen [Wed, 26 Oct 2016 10:21:39 +0000 (06:21 -0400)]
GdkWindow: Use the seat to enumerate devices
GdkDeviceManager is going away.
Matthias Clasen [Wed, 26 Oct 2016 00:38:38 +0000 (20:38 -0400)]
quartz: Stop using gdk_device_manager_list_devices
The function has been deprecated.
Matthias Clasen [Wed, 26 Oct 2016 00:38:05 +0000 (20:38 -0400)]
x11: Stop using gdk_device_manager_list_devices
The function has been deprecated.
Matthias Clasen [Wed, 26 Oct 2016 00:37:35 +0000 (20:37 -0400)]
broadway: Stop using gdk_device_manager_list_devices
The function is deprecated.
Alexander Larsson [Mon, 17 Oct 2016 13:07:57 +0000 (15:07 +0200)]
Make gdk.la and gsk.la a noninst helper library
This merged gtk, gdk and gsk into one library, making it possible to
have internal private APIs between gtk them, as well as producing more
efficient code.
https://bugzilla.gnome.org/show_bug.cgi?id=773100
Benjamin Otte [Tue, 18 Oct 2016 01:49:09 +0000 (03:49 +0200)]
widget: Improve early exit checks on queue_draw()
(1) We don't need to check for realized when we check for mapped right
below.
(2) Empty regions don't need to be drawn.
Jaime Velasco Juan [Mon, 17 Oct 2016 13:33:47 +0000 (14:33 +0100)]
win32 theme: Fix tooltip borders
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Fri, 14 Oct 2016 13:13:09 +0000 (14:13 +0100)]
win32 theme: Fix combobox
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Fri, 14 Oct 2016 11:16:57 +0000 (12:16 +0100)]
win32 theme: Fix column headers
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Fri, 14 Oct 2016 09:49:55 +0000 (10:49 +0100)]
win32 theme: Fix popup window decorations
Windows such as combobox's popup were using toplevel window's borders
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Fri, 14 Oct 2016 08:47:11 +0000 (09:47 +0100)]
gtkwin32theme: delete #if 0 code
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Thu, 13 Oct 2016 11:50:51 +0000 (12:50 +0100)]
win32 theme: Fix scale widget
It was invisible before.
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Fri, 14 Oct 2016 08:24:13 +0000 (09:24 +0100)]
win32 theme: No need to create a DC for GetThemePartSize
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Fri, 14 Oct 2016 08:18:46 +0000 (09:18 +0100)]
win32 theme: use TS_TRUE in GetThemePartSize
Several styles return a size of 0x0px when using TS_DRAW, as
we don't pass a RECT to draw into.
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Thu, 13 Oct 2016 11:38:05 +0000 (12:38 +0100)]
win32 theme: Fix scrollbars
The fix is only partial, when both scrollbars are visible their ends
overlap.
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Thu, 13 Oct 2016 11:27:43 +0000 (12:27 +0100)]
Fix CSS warnings in win32 theme
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Jaime Velasco Juan [Thu, 13 Oct 2016 11:26:09 +0000 (12:26 +0100)]
Fix tiny fonts in win32 theme
broken since
df08fc91... (css: always get default font size in pixels)
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Sébastien Wilmet [Wed, 26 Oct 2016 13:20:25 +0000 (15:20 +0200)]
docs: fix copy/paste errors in the docs of GtkScrolledWindow
Trivial commit.
Sébastien Wilmet [Wed, 26 Oct 2016 12:11:57 +0000 (14:11 +0200)]
docs: update section file for GtkScrolledWindow
Trivial commit.
- More logical ordering (re-group related things).
- Add missing functions: max_content_width/height.
Chun-wei Fan [Wed, 26 Oct 2016 08:36:03 +0000 (16:36 +0800)]
gdk/win32/gdkevents-win32.c: Avoid gdk_device_manager_get_core_pointer()
This function has been removed, so replace it with gdk_seat_get_pointer().
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Chun-wei Fan [Wed, 26 Oct 2016 10:28:50 +0000 (18:28 +0800)]
demos: Fix 'make install'
We need to change gtk-update-icon-cache to gtk4-update-icon-cache, as that tool
has been renamed.
Chun-wei Fan [Wed, 26 Oct 2016 10:23:38 +0000 (18:23 +0800)]
GSK: Add initial Visual Studio projects
This adds the initial MSVC build items needed to build GSK under Visual Studio,
this is part of it that is required, we need to add items to the property sheets
to generate the code that is generated via glib-mkenums and glib-compile-resources.
This set includes, with the autotools scripts for the complete:
-GSK project files, which is integrated into the gtk+-4.sln.
-The NMake snippets to build the introspection files for GSK.
-The .bat files to call glib-mkenums to generate the enumeration sources.
Matthias Clasen [Wed, 26 Oct 2016 09:13:52 +0000 (05:13 -0400)]
Drop x11-specific code from the GTK+ dnd code
We were using passive grabs to listen for some individual
keys. Nowadays, the managed dnd code in the x11 backend
does the same.
Chun-wei Fan [Wed, 26 Oct 2016 05:42:43 +0000 (13:42 +0800)]
MSVC builds: Support MSVC 2013 and later
We now need C99 features from the compiler which are only supported by
Visual Studio 2013 and later, so drop the MSVC 2008~2012 projects, and make
the baseline supported Visual Studio version be 2013. Update the build files
as a result.
Chun-wei Fan [Wed, 26 Oct 2016 05:22:48 +0000 (13:22 +0800)]
build/Makefile.msvcproj: Add rules for MSVC 2013 to be baseline version
GTK+-3.89.0 and later will require C99 features that is only supported on
Visual Studio 2013 and later, so prepare build/Makefile.msvcproj for this.
We still keep the 2008~2010 stuff here as this strives to be a shared module,
and there are projects using this that still supports building on pre-2013
Visual Studio.
Chun-wei Fan [Wed, 19 Oct 2016 10:46:59 +0000 (18:46 +0800)]
Remove gtk4-install.props's during re-generation
This is to ensure the changes in the generated
build/win32/vs10/gtk4-install.props are applied in
build/win32/vs[11|12|14] as well.
Rico Tzschichholz [Wed, 26 Oct 2016 08:12:58 +0000 (10:12 +0200)]
visual: Remove deprecated API
Rico Tzschichholz [Wed, 26 Oct 2016 08:06:23 +0000 (10:06 +0200)]
Remove deprecated gdk_display_open_default_libgtk_only
Matthias Clasen [Wed, 26 Oct 2016 01:46:14 +0000 (21:46 -0400)]
Fix the docs build after offscreen window removal
Matthias Clasen [Wed, 26 Oct 2016 01:24:37 +0000 (21:24 -0400)]
Revert "Remove gdk_device_grab/ungrab from the API"
This reverts commit
efc37d08556ed8516442a18a67e3035f13cf05a7.
Turns out we need to clean up the dnd code some more, first.
Matthias Clasen [Wed, 26 Oct 2016 01:06:25 +0000 (21:06 -0400)]
Drop the deprecated gdk_device_manager_get_client_pointer